﻿using System;
using System.Runtime.InteropServices;

namespace Common
{
    /// <summary>
    /// 导入类
    /// </summary>
    public class DllImport
    {
        /// <summary>
        /// 释放
        /// </summary>
        /// <param name="hObject"> </param>
        /// <returns> </returns>
        [DllImport("gdi32.dll", EntryPoint = "DeleteObject")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static extern bool DeleteObject([In] IntPtr hObject);
    }
}